import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

import * as ElementPlusIconsVue from '@element-plus/icons-vue'  //引入icon图标

//引入css样式
import './assets/css/reset.css'


const app = createApp(App)
app.use(ElementPlus)   //组件
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {    //循环icon图标  //entries把对象换成可枚举对象
    app.component(key, component)
}

app.use(store)    //vuex
app.use(router)    //路由
app.mount('#app')
